// Copyright (c) 2009 Luca Marrocco.
// Modified or written by Luca Marrocco for inclusion with codej.
// Licensed under the Apache License, Version 2.0 (the "License")
package codej.gen;

import codej.ast.*;

/** @author Luca Marrocco */
public class Token extends AbstractNode {

	private String name;

	public Token(String name) {
		setName(name);
	}

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public String getName() {
		return this.name;
	}

	public Token setName(String name) {
		this.name = name;

		return this;
	}

	public String toString() {
		return getName();
	}
}
